﻿using UnityEngine;
using System.Collections;
using strange.extensions.context.api;
using strange.extensions.context.impl;

public class Demo1MVCSContext : MVCSContext {
    
    public Demo1MVCSContext(MonoBehaviour view) : base(view)
    {
        
    }

    protected override void mapBindings()
    {
        //model


        //service


        //command
        commandBinder.Bind(Demo1CommandEvent.RequestScore).Bind<RequestScoreCommand>();

        //mediator
        mediationBinder.Bind<CubeView>().To<CubeMediator>();//绑定 cubeview与cubemediator绑定


        //创建startcommand命令
        commandBinder.Bind(ContextEvent.START).To<StartCommand>().Once();
    }
}
